home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 July / EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso / earcd / mus / play / splibdev.lha / superplay-lib_DEV / Programmers / include / superplay / superplay.h < prev    next >
C/C++ Source or Header  |  1997-04-03  |  5KB  |  165 lines

  1. /*
  2. **      $VER: superplay.h 6.2 (17.3.97)
  3. **
  4. **      main include file for superplay.library
  5. **
  6. **      (C) Copyright 1994-97 Andreas R. Kleinert
  7. **      All Rights Reserved.
  8. */
  9.  
  10. #ifndef SUPERPLAY_SUPERPLAY_H
  11. #define SUPERPLAY_SUPERPLAY_H
  12.  
  13.  
  14. /* *************************************************** */
  15. /* *                                                 * */
  16. /* * Version Defines                                 * */
  17. /* *                                                 * */
  18. /* *************************************************** */
  19.  
  20. #define SPLIB_MINIMUM  5   /* lowest supported version                   */
  21. #define SPLIB_VERSION  6   /* just for info, should not be used anywhere */
  22.  
  23.  
  24. /* *************************************************** */
  25. /* *                             * */
  26. /* * Includes                          * */
  27. /* *                             * */
  28. /* *************************************************** */
  29.  
  30. #ifndef EXEC_TYPES_H
  31. #include <exec/types.h>
  32. #endif /* EXEC_TYPES_H */
  33.  
  34. #ifndef LIBRARIES_DOS_H
  35. #include <libraries/dos.h>
  36. #endif /* LIBRARIES_DOS_H */
  37.  
  38. #ifndef _STDIO_H
  39. #include <stdio.h>
  40. #endif /* _STDIO_H */
  41.  
  42. #ifndef _STDLIB_H
  43. #include <stdlib.h>
  44. #endif /* _STDLIB_H */
  45.  
  46. #ifndef _STRING_H
  47. #include <string.h>
  48. #endif /* _STRING_H */
  49.  
  50.  
  51. /* *************************************************** */
  52. /* *                             * */
  53. /* * Custom Defines                     * */
  54. /* *                             * */
  55. /* *************************************************** */
  56.  
  57. #ifndef N
  58. #define N NULL     /* useful */
  59. #endif /* N */
  60.  
  61.  
  62. /* *************************************************** */
  63. /* *                             * */
  64. /* * MACROs for Version-Tests                 * */
  65. /* *                             * */
  66. /* *************************************************** */
  67.  
  68. #define LibVer(x) ( ((struct Library *) x)->lib_Version )
  69. #define OS_VER      LibVer(SysBase)
  70.  
  71.  
  72. /* *************************************************** */
  73. /* *                             * */
  74. /* * DEFINES                                         * */
  75. /* *                             * */
  76. /* *************************************************** */
  77.  
  78.  
  79. /* Possible FileTypes */
  80.  
  81. #define SP_FILETYPE_NONE     ((ULONG) 0)
  82. #define SP_FILETYPE_UNKNOWN  SP_FILETYPE_NONE
  83.  
  84.      /*
  85.         above : External, user defined FileTypes
  86.                 (defined EACH TIME NEW at Library's startup-time).
  87.      */
  88.  
  89. #define SP_FILETYPE_ILLEGAL  ((ULONG) 0xFFFFFFFF)
  90.  
  91.  
  92. /* Possible SubTypes of FileTypes */
  93.  
  94. #define SP_SUBTYPE_NONE        ((ULONG) 0)
  95. #define SP_SUBTYPE_UNKNOWN  SP_SUBTYPE_NONE
  96.  
  97.      /*
  98.         above : External, user defined FileSubTypes
  99.                 (defined EACH TIME NEW at Library's startup-time).
  100.      */
  101.  
  102. #define SP_SUBTYPE_ILLEGAL  ((ULONG) 0xFFFFFFFF)
  103.  
  104.  
  105. /* Possible Input and Output mediums */
  106.  
  107. #define SPO_MEDIUM_NONE        ((ULONG) 0)
  108. #define SPO_MEDIUM_ILLEGAL  ((ULONG) 0xFFFFFFFF)
  109.  
  110. #define SPO_MEDIUM_DISK    ((ULONG) 1)              /* Play and Write options   */
  111. #define SPO_MEDIUM_CLIP    ((ULONG) 2)
  112.  
  113.      /* might not be supported by all kinds of File(Sub)Types */
  114.  
  115.  
  116. /* *************************************************** */
  117. /* *                             * */
  118. /* * Function Error Codes                     * */
  119. /* *                             * */
  120. /* *************************************************** */
  121.  
  122. #define SPERR_MAX_ERROR_TEXT_LENGTH (80)       /* plus Null-Byte */
  123.  
  124. #define SPERR_NO_ERROR               (NULL)
  125. #define SPERR_INTERNAL_ERROR         ((ULONG) 0xFFFFFFFF)
  126.  
  127.  
  128. #define SPERR_UNKNOWN_FILE_FORMAT      ((ULONG) 1)
  129. #define SPERR_CANNOT_OPEN_SOURCE_FILE  ((ULONG) 2)
  130. #define SPERR_NO_MEMORY                ((ULONG) 3)
  131. #define SPERR_IFFPARSE_ERROR           ((ULONG) 4)
  132. #define SPERR_CANNOT_OPEN_SOURCE_CLIP  ((ULONG) 5)
  133. #define SPERR_CANNOT_OPEN_DEST_FILE    ((ULONG) 6)
  134. #define SPERR_INVALID_HANDLE           ((ULONG) 7)
  135. #define SPERR_CANNOT_READ_CONTENT      ((ULONG) 8)
  136. #define SPERR_NO_INFORMATION           ((ULONG) 9)
  137. #define SPERR_ILLEGAL_ACCESS           ((ULONG) 10)
  138. #define SPERR_DECODE_ERROR             ((ULONG) 11)
  139. #define SPERR_UNKNOWN_PARAMETERS       ((ULONG) 12)
  140. #define SPERR_ACTION_NOT_SUPPORTED     ((ULONG) 13)
  141. #define SPERR_CANNOT_ALLOCATE_CHANNELS ((ULONG) 14)
  142. #define SPERR_VERSION_CONFLICT         ((ULONG) 15)
  143. #define SPERR_NO_SAMPLES_LOADED        ((ULONG) 16)
  144. #define SPERR_NOTHING_TO_WRITE         ((ULONG) 17)
  145. #define SPERR_CANNOT_OPEN_DEST_CLIP    ((ULONG) 18)
  146. #define SPERR_ENCODE_ERROR             ((ULONG) 19)
  147.  
  148.         /* Each new Library-Subversion may contain new Codes above
  149.            the last one of these.
  150.            So do not interpret the codes directly, but use
  151.            SPL_GetErrorString.
  152.            Maybe, newer Codes might not be listed up here.
  153.         */
  154.  
  155. #ifndef NO_SUPERPLAY_OBSOLETE_H
  156.  
  157. #ifndef SUPERPLAY_OBSOLETE_H
  158. #include <superplay/spobsolete.h>
  159. #endif /* SUPERPLAY_OBSOLETE_H */
  160.  
  161. #endif /* NO_SUPERPLAY_OBSOLETE_H */
  162.  
  163.  
  164. #endif /* SUPERPLAY_SUPERPLAY_H */
  165.